<?php
/*
Plugin Name: IP Obfuscator
Plugin URI: http://code.google.com/p/cosas/wiki/Plugins
Description: Obfuscate users IPs 
Version: 1.0
Author: leio10
*/

yourls_add_filter( 'get_IP', 'obfuscateIP' );

function obfuscateIP( $original_ip, $store ) {
        if (!$store) return $original_ip;
        $new_ip = crc32($original_ip);
        return $new_ip;
}
